package com.example.cotroller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

@RestController
@Slf4j
public class HomeController {
    @GetMapping("/hello/{name}")
    public String hello(@PathVariable String name)
    {
        log.info("方法执行中==============");

        return "Hello=======:" + name;
    }


    public String ok( String name)
    {
        log.info("方法执行中==============");

        return "Hello=======:" + name;
    }


}
